import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import VueFormGenerator from 'vue-form-generator'
Vue.config.productionTip = false
const is_online=!window.location.host.includes('beta_') && !window.location.host.includes('127.0.0.1')
Vue.prototype.is_online=is_online
Vue.prototype.host=window.location.host
Vue.prototype.cms=`http://${is_online?'employ':'beta_employ'}.pizhigu.com`
// Vue.use(VueFormGenerator)
Vue.prototype.TJ_event=(...params)=>{
  params[1]=params[1]|| '点击'
  params.unshift('_trackEvent')
  window._hmt.push(params)
}
new Vue({
  router,
  render: h => h(App),
  mounted () {
    document.dispatchEvent(new Event('render-event'))
  }
}).$mount('#app')
